#include "Timer.hpp"


int main() {
    Timer t;
    int counter=0;
    t.setInterval([&counter](){
        std::cout << "counter: " << counter << std::endl;
        counter++;
    }, 100);

    t.setTimeout([&](){
        std::cout << "Timerout: " << counter <<  std::endl;
        counter++;
        t.stop();
    }, 5200);
    while(true);
    return 0;
}